package cn.tedu.tourism.province.service.impl;

import cn.tedu.tourism.province.mapper.ProvinceMapper;
import cn.tedu.tourism.province.pojo.dto.ProvinceQuery;
import cn.tedu.tourism.province.pojo.entity.Province;
import cn.tedu.tourism.province.pojo.vo.ProvinceVO;
import cn.tedu.tourism.province.service.ProvinceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
@Slf4j
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceMapper provinceMapper;
    @Override
    public List<ProvinceVO> select(ProvinceQuery provinceQuery) {
        log.debug("省份查询参数为：{}",provinceQuery);
        List<ProvinceVO> select = provinceMapper.select(provinceQuery);
        return select;
    }
}
